package com.liliudong.template.common.convert.sys;

import com.liliudong.template.common.request.sys.SysUserAddRequest;
import com.liliudong.template.common.request.sys.SysUserModifyRequest;
import com.liliudong.template.common.entity.sys.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author ldli5
 * @classname UserMapper
 * @date 2024/6/18-17:02
 */
@Mapper
public interface SysUserConvert {

	SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

	/**
	 * 添加dto2实体
	 *
	 * @param sysUserAddRequest sys用户添加数据
	 * @return {@link SysUser }
	 */
	SysUser addDto2Entity(SysUserAddRequest sysUserAddRequest);

	/**
	 * 修改dto2实体
	 *
	 * @param sysUserModifyRequest sys用户修改数据
	 * @return {@link SysUser }
	 */
	SysUser modifyDto2Entity(SysUserModifyRequest sysUserModifyRequest);
}
